package com.hp_dzzl.client;

import com.hp_dzzl.Hp_dzzl;
import com.hp_dzzl.client.particle.MagicParticleProvider;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.client.event.RegisterParticleProvidersEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.api.distmarker.OnlyIn;

@OnlyIn(Dist.CLIENT)
@Mod.EventBusSubscriber(modid = Hp_dzzl.MODID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
public class ClientEventHandler {

    @SubscribeEvent
    public static void onRegisterParticles(RegisterParticleProvidersEvent event) {
        // 注册粒子提供器
        event.registerSpriteSet(Hp_dzzl.MAGIC_PARTICLE.get(), MagicParticleProvider::new);
    }
}